﻿using System;

namespace OSDK.Rapporter
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.btnCopy.Attributes.Add("onclick", "Select('" + this.TextBox1.ClientID + "');");

            //Build string
            foreach (System.Net.Mail.MailAddress address in Data.DB.GetEmails(Data.DB.MailGroup.Alla))
            {
                this.TextBox1.Text += address.Address + ";";
            }

        }
    }
}
